namespace ArisanNgocok.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;
    using Models;

   internal sealed class Configuration : DbMigrationsConfiguration<DataContext>
   {
      public Configuration()
      {
         AutomaticMigrationsEnabled = true;
      }

      protected override void Seed(DataContext context)
      {
         context.Users.AddOrUpdate(o => o.Name,
            new User {Name = "Aditya Wahyu Aminudin"},
            new User {Name = "Arief Fajar Permana"},
            new User {Name = "Arif Ramadhan"},
            new User {Name = "Dorisman Putra"},
            new User {Name = "Farhad Alaydrus"},
            new User {Name = "Fauzi Fathurahman"},
            new User {Name = "Hendro Prabowo"},
            new User {Name = "Muhmammad Ridwan Fansuri"},
            new User {Name = "Rangga Wibawa"},
            new User {Name = "Syamsul Bachri"},
            new User {Name = "Tris Ramadhan"},
            new User {Name = "Wildan Rachman"}
            );
      }
   }
}
